<?php
Class Cuenta extends AppModel {
	
	var $name = 'Cuenta';
	var $belongsTo = array
	(
		'Cliente'=> array
		(
			'ClassName'	=> 'Cliente',
			'conditions'=> '',
			'order'=>'',
			'foreignKey'=>'clientes_id'
		),
		'Servicio'=>array
		(
			'ClassName'	=> 'Servicio',
			'conditions'=> '',
			'order'=>'',
			'foreignKey'=>'servicios_id'
		),
		'Formapago' => array 
		(
			'className' => 'Formapago',
			'conditions' => '',
			'order' => '',
			'dependet' => '',
			'foreignKey' => 'formapagos_id'
		)

	);
	
	
	//Validaciones de los campos	
	var $validate = array
	(
		'monto' => '/^[0-9]{1,7}\.[1-9]{0,2}$|^[0-9]{1,7}$/i'
	);


}
?>
